package com.meida.module.bus.client.entity;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.TableName;
import com.meida.common.mybatis.base.entity.AbstractAllEntity;
import com.meida.common.mybatis.base.entity.AbstractEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.meida.common.mybatis.annotation.TableAlias;

/**
 * 订单支付信息
 *
 * @author flyme
 * @date 2022-03-01
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("bus_payinfo")
@TableAlias("payinfo")
@ApiModel(value = "BusPayinfo对象", description = "订单支付信息")
public class BusPayinfo extends AbstractAllEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "payInfoId", type = IdType.ASSIGN_ID)
    private String payInfoId;

    private String accountId;

    @ApiModelProperty(value = "用户Id")
    private Long userId;

    @ApiModelProperty(value = "订单号")
    private String orderNo;

    @ApiModelProperty(value = "商品描述")
    private String subject;

    @ApiModelProperty(value = "商品标题")
    private String body;

    @ApiModelProperty(value = "数量（商品数量）")
    private Integer count;

    private BigDecimal carriage;

    @ApiModelProperty(value = "商品总价")
    private BigDecimal amount;

    @ApiModelProperty(value = "订单类型（1购买产品 , 2 转卡费用）")
    private String busType;

    @ApiModelProperty(value = "支付类型（PAY_ALI支付宝 , PAY_WX微信,PAY_UNDERLINE线下支付）")
    private String payType;

    @ApiModelProperty(value = "支付状态（PAY_0未支付 ,PAY_1已支付,PAY_2已退款）")
    private String payStatus;

    @ApiModelProperty(value = "渠道订单号")
    private String channelOrderNum;

    @ApiModelProperty(value = "订单Id")
    private Long targetId;

    @ApiModelProperty(value = "付款日期")
    private String payDate;

    @ApiModelProperty(value = "完成日期")
    private String finishDate;

    @ApiModelProperty(value = "最后修改时间")
    private String modifyDate;

    @ApiModelProperty(value = "支付参数")
    private Long payparamId;

    @ApiModelProperty(value = "备注")
    private String remark;

}
